package com.freak.wanandroid.model.frequently;

import com.freak.httpmanager.callback.SubscriberCallBack;
import com.freak.wanandroid.base.repository.BaseRepository;
import com.freak.wanandroid.bean.FrequentlyBean;
import com.freak.wanandroid.net.HttpResultFunc;

import java.util.List;

import io.reactivex.rxjava3.core.Observable;


/**
 * Created by 74099 on 2018/9/6.
 */

public class FrequentlyRepository extends BaseRepository {
    public void getFrequently(SubscriberCallBack<List<FrequentlyBean>> observer) {
        Observable observable = mApiService.getFrequently().map(new HttpResultFunc<List<FrequentlyBean>>());
        addSubscription(observable, observer);
    }
}
